﻿@model List<string>
@{
    Layout = null; // 设置布局为null，表示不使用任何布局
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Backup Files</title>
    <link href="~/Assets/Hplus/css/bootstrap.min.css" rel="stylesheet" />
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f7fc;
            padding: 20px;
        }

        table {
            width: 100%;
            margin: 20px 0;
            border-collapse: collapse;
        }

        th, td {
            text-align: left;
            padding: 12px;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: #007bff;
            color: white;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        tr:hover {
            background-color: #ddd;
        }

        .btn {
            background-color: #28a745;
            color: white;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 4px;
        }

            .btn:hover {
                background-color: #218838;
            }

        .container {
            max-width: 900px;
            height:600px;
            margin: 0 auto;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }

        h2 {
            color: #333;
        }
    </style>
</head>
<body>

    <div class="container">
        <h3>数据库备份文件</h3>

        <table class="table table-striped">
            <thead>
                <tr>
                    <th>文件名</th>
                    <th>下 载</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var fileName in Model)
                {
                    <tr>
                        <td>@fileName</td>
                        <td>
                            @* 下载按钮 *@
                            @Html.ActionLink("Download", "Download", new { fileName = fileName }, new { @class = "btn" })
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>

    <script src="~/Assets/slim.min.js"></script>
    <script src="~/Assets/popper.min.js"></script>
    <script src="~/Assets/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>
